package com.iot.ammeter.model.entry

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import com.iot.ammeter.model.Payment
import com.iot.ammeter.network.ResponseData

/**
 * 余额充值记录
 * @param fillAmount 充值金额
 * @param fillTime 充值时间
 * @param payment 支付类型
 * @see Payment
 */
@Entity(tableName = "balance_fill_records")
data class BalanceFillRecord(
    @PrimaryKey @ColumnInfo(name = "fill_record_id") val fillRecordId: String,
    @ColumnInfo(name = "fill_amount") val fillAmount: Float,
    @ColumnInfo(name = "fill_time") val fillTime: Long, // timestamp
    @ColumnInfo(name = "payment") val payment: Payment
) : ResponseData
